<!DOCTYPE html>
<html>
  <head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'>
    <title>Deco</title>
    <meta name='description' content=''>
    <meta name='viewport' content='user-scalable=no width=device-width, initial-scale=1.0 maximum-scale=1.0'>
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src='https://www.google-analytics.com/analytics.js';m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga')
      const GA_LOCAL_STORAGE_KEY = 'ga:clientId'

      ga('create', 'UA-67627558-2', 'auto', {
        appName: 'Deco Mac App',
        storage: 'none',
        clientId: localStorage.getItem(GA_LOCAL_STORAGE_KEY),
        cookieDomain: 'none'
      })

      ga(function(tracker) {
         localStorage.setItem(GA_LOCAL_STORAGE_KEY, tracker.get('clientId'));
      })

      ga('set', 'checkProtocolTask', null)
      ga('set', 'location', 'macapp.deco.sh')
      ga('send', 'pageview')
    </script>
  </head>
  <body>
    <div id="app"></div>
    <script>
      Electron = require('electron')
      // Stop warning about react devtools
      // https://github.com/facebook/react/issues/3877
      __REACT_DEVTOOLS_GLOBAL_HOOK__ = {}
    </script>
    <script src="./bundle.js"></script>
  </body>
</html>
